package com.pay.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author Peng
 * @since 2018-12-06
 */
@TableName("t_merchant")
public class Merchant implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField(exist=false)
	private ZfbMember zfbMember ; 
	
	/**
	 * 商户钱包
	 */
	@TableField(exist=false)
	private MerchantAccount merchantAccount ;
	
	/**
	 * 主键 商户编号
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 商户后台登录账号
	 */
	private String username;

	/**
	 * 商户后台登录密码
	 */
	private String password;

	/**
	 * 快乐狗与商户之间约定的32位字符串，用来签名
	 */
	private String merchantKey;

	/**
	 * 是否关闭了该商户的通道-1关闭 0正常
	 */
	private Integer status;

	@TableLogic
	private Integer isdel ; 

	/**
	 * 备注商户名称
	 */
	private String remark ;
	
	/**
	 * 点
	 */
	private BigDecimal scale ; 
	
	private Date createtime ;
	
	/**
	 * 商户模式 0到公  1到私
	 */
	private Integer model ; 
	
	/**
	 * 支付宝机器人id 只有到私才不等于-1
	 */
	private Integer zfbMemberId ;
	
	
	public ZfbMember getZfbMember() {
		return zfbMember;
	}

	public void setZfbMember(ZfbMember zfbMember) {
		this.zfbMember = zfbMember;
	}

	public Integer getZfbMemberId() {
		return zfbMemberId;
	}

	public void setZfbMemberId(Integer zfbMemberId) {
		this.zfbMemberId = zfbMemberId;
	}

	public Integer getModel() {
		return model;
	}

	public void setModel(Integer model) {
		this.model = model;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public BigDecimal getScale() {
		return scale;
	}

	public void setScale(BigDecimal scale) {
		this.scale = scale;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMerchantKey() {
		return merchantKey;
	}

	public void setMerchantKey(String merchantKey) {
		this.merchantKey = merchantKey;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	

	public MerchantAccount getMerchantAccount() {
		return merchantAccount;
	}

	public void setMerchantAccount(MerchantAccount merchantAccount) {
		this.merchantAccount = merchantAccount;
	}

	@Override
	public String toString() {
		return "Merchant{" +
				"id=" + id +
				", username=" + username +
				", password=" + password +
				", key=" + merchantKey +
				", status=" + status +
				"}";
	}
}
